# coding: utf-8

# -------------------------------------------------------------------------------
# Name:         markdown
# Description:
# Author:       XiangjunZhao
# EMAIL:        2419352654@qq.com
# Date:         2020-02-10
# -------------------------------------------------------------------------------

from django.db import models
from apps.HttpAutoTestService.models import BaseModel

__all__ = ['Markdown']


class Markdown(BaseModel):
    name = models.CharField(null=False, blank=False, max_length=32, unique=True, verbose_name='名称')
    types = models.CharField(null=False, blank=False, max_length=32, unique=True, verbose_name='类别')
    content = models.TextField(null=True, blank=True, verbose_name='内容')

    class Meta:
        verbose_name = 'Markdown内容'
        verbose_name_plural = verbose_name
        db_table = 'http_markdown'
        ordering = ('-update_time',)

    def __str__(self):
        return self.name
